<?php include atemplate('header');
?>
<script src="/ckeditor/ckeditor.js"></script>

<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="left" bgcolor="#B51C00"> 　<span class="STYLE8"><?php echo $id ?'编辑':'添加';?>公告</span></td>
    <td width="100" align="center" bgcolor="#B51C00"></td>
  </tr>
</table>
<form action="/admin/index.php?do=news&ac=add" method="post">
  <table width="96%" border="0" cellspacing="0" cellpadding="0">
    <tr bgcolor="#FFFFF7">
      <td align="center" valign="middle" class="STYLE7">公告标题</td>
      <td height="40" align="left" ><input name="title" type="text" style="height:25px" size="40" value="<?php echo $info['title'];?>"/></td>
    </tr>
    <tr bgcolor="#FAFAFA">
      <td width="100" align="center" valign="middle" class="STYLE7">公告内容</td>
      <td height="40" align="left" ><br />
        <textarea name="content" cols="100" rows="10"><?php echo $info['content'];?></textarea>
        <script type="text/javascript">
	CKEDITOR.replace( 'content' );
</script></td>
    </tr>
    <tr bgcolor="#FFFFF7">
      <td align="center" valign="middle" class="STYLE7">&nbsp;</td>
      <td height="40" align="left" ><input type="submit" value="提交" /></td>
    </tr>
  </table>
  <input type="hidden" name="step" value="2" />
  <input type="hidden" name="id" value="<?php echo $info['id'];?>" />
</form>
<?php include atemplate('footer');?>
